<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div>
            <div class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </div>
            <div class="mc-m">
                <div class="navToggle"></div>
            </div>
            <div class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="连接记录管理">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
								<div class="s_toolTop">
									<div class="toolbor-module export">
										<div class="formTit">时间：</div>
										<input class="_search-value" name="addStartDate" id="addStartDate" value="" onclick="change_picktime()"/>
										<div class="formTit"> 到 </div>
										<input class="_search-value" name="addEndDate" id="addEndDate" value=""  onclick="change_picktime()"/>
									</div>
									<div class="toolbor-module export">
										<div class="formTit">链接类型：</div>
										<div class="select-box" id="conType">
											<div class="tag-select">全部</div>
											<ul class="tag-options">
												<li data-value="">全  部</li>
												<li data-value="REQ">请求</li>
												<li data-value="RES">响应</li>
											</ul>
										</div>
									</div>
									<div class="toolbor-module export">
										<div class="formTit">服务名称：</div>
										<div class="select-box" id="service">
											<div class="tag-select">全部</div>
											<ul class="tag-options">
												<li data-value="">全  部</li>
												<li data-value="REAL_NAME">实名认证</li>
												<li data-value="PAY">支付</li>
												<li data-value="PAY_RETURN">支付同步通知</li>
												<li data-value="PAY_NOTIFY">支付异步通知</li>
												<li data-value="CASH">代扣</li>
												<li data-value="CASH_NOTIFY">代扣异步通知</li>
												<li data-value="ORDER_QUERY">支付订单查询</li>
												<li data-value="CASH_ORDER_QUERY">代扣订单查询</li>
												<li data-value="QUERY_BANK_CARD">银行卡卡bin信息查询</li>
												<li data-value="USER_BANKCARD">用户签约银行卡</li>
												<li data-value="BANKCARD_UNBIND">用户解约银行卡</li>
												<li data-value="QUERY_BANKCARD_LIST">用户已绑定银行列表查询</li>
											</ul>
										</div>
									</div>
									<div class="toolbor-module export">
										<div class="formTit">合作商：</div>
										<div class="select-box" id="partner">
											<div class="tag-select">全部</div>
											<ul class="tag-options">
												<li data-value="">全  部</li>
												<li data-value="LL">连连支付</li>
												<li data-value="ZXCY">中诚信源-实名认证</li>
											</ul>
										</div>
									</div>
									<div class="toolbor-module export">
										<div class="formTit">响应关键字：</div>
										<input type="text" name="resKey" id="resKey" value="响应关键字" class="search-value">
									</div>
								</div>
								<div class="s_toolTop">
									<div class="toolbor-module export">
										<div class="formTit">请求关键字：</div>
										<input type="text" name="reqKey" id="reqKey" value="请求关键字" class="search-value">
									</div>
									<div class="toolbor-module search">
										<input type="button" value="搜索"  class="input-button" onclick="sousuo();">
									</div>
								</div>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>序号</td>
                                            <td>合作商</td>
                                            <td>服务名称</td>
                                            <td>链接类型</td>
                                            <td>请求参数</td>
                                            <td>响应参数</td>
                                            <td>时间</td>
                                        </tr>
                                        <#if list?? && (list?size > 0)> 
                                        	<#list list as obj>
                                            <tr class="s">
                                               	<td>${obj.id?c}</td>
	                                            <td>
	                                            <#if obj.partner == "LL">
	                                            	连连支付
	                                            <#elseif obj.partner == "ZCXY">
	                                            	中诚信源-实名认证
	                                            <#else>
	                                            	-
	                                            </#if>
	                                            </td>
	                                            <td>
	                                            	<#if obj.service =="REAL_NAME">
	                                            		实名认证
	                                            	<#elseif obj.service == "PAY">
	                                            		支付
	                                            	<#elseif obj.service == "PAY_RETURN">
	                                            		支付同步通知
	                                            	<#elseif obj.service == "PAY_NOTIFY">
	                                            		支付异步通知
	                                            	<#elseif obj.service == "CASH">
	                                            		代扣
	                                            	<#elseif obj.service == "CASH_NOTIFY">
	                                            		代扣异步通知
	                                            	<#elseif obj.service == "ORDER_QUERY">
	                                            		支付订单查询
	                                            	<#elseif obj.service == "CASH_ORDER_QUERY">
	                                            		代扣订单查询
	                                            	<#elseif obj.service == "QUERY_BANK_CARD">
	                                            		银行卡卡bin信息查询
	                                            	<#elseif obj.service == "USER_BANKCARD">
	                                            		用户签约银行卡
	                                            	<#elseif obj.service == "BANKCARD_UNBIND">
	                                            		用户解约银行卡
	                                            	<#elseif obj.service == "QUERY_BANKCARD_LIST">
	                                            		用户已绑定银行列表查询
	                                            	<#else>
	                                            		-
	                                            	</#if>
	                                            </td>
	                                            <td>
	                                            	<#if obj.conType == "REQ">
	                                            		请求
	                                            	<#elseif obj.conType == "RES">
	                                            		响应
	                                            	<#else>
	                                            		-
	                                            	</#if>
	                                            </td>
	                                            <td><a href="/admin/tradeOrder/paramsDetail.html?id=${obj.id?c}&type=1"><#if obj.reqParams?exists><#if obj.reqParams?length gt 50>${obj.reqParams[0..50]}..<#else>${obj.reqParams}</#if></#if></a></td>
	                                            <td><a href="/admin/tradeOrder/paramsDetail.html?id=${obj.id?c}&type=2"><#if obj.resParams?exists><#if obj.resParams?length gt 50>${obj.resParams[0..50]}..<#else>${obj.resParams}</#if></#if></a></td>
	                                            <td>${obj.addTime!''}</td>
                                            </tr>
                                       	 	</#list> 
                                        </#if>
                                    </table>
                                </form>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                    <div class="container s_formPage">
                                        <#import "../../common/page.html" as pager>
                                            <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                                    </div>
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->

                                <script type="text/javascript">
                                    var url='conRecord.html?search=true';
                                    function sousuo(){
                    					var sou = "";
                    					
                   					  var addStartDate = $("#addStartDate").val();
                                        	var addEndDate = $("#addEndDate").val();
                                         if (addStartDate!=null){
                                             sou += "&addStartDate="+addStartDate;
                                         }
                                         if (addEndDate!=null){
                                             sou += "&addEndDate="+addEndDate;
                                         }
                                          
                                        var partner = $("#partner").find(".open-selected").attr("data-value");
                                        if(partner!=null&&partner!=""&&partner!="undefine"){
                                        	sou += "&partner="+partner;
                                        }
                                        var service = $("#service").find(".open-selected").attr("data-value");
                                        if(service!=null&&service!=""&&service!="undefine"){
                                        	sou += "&service="+service;
                                        }
                                        var conType = $("#conType").find(".open-selected").attr("data-value");
                                        if(conType!=null&&conType!=""&&conType!="undefine"){
                                        	sou += "&conType="+conType;
                                        }
                                    
                                        var reqKey = $("#reqKey").val();
                    					if (reqKey!=""&&reqKey!="请求关键字"){
                    						sou += "&reqKey="+reqKey;
                    					}
                    					
                    					 var resKey = $("#resKey").val();
                     					if (resKey!=""&&resKey!="响应关键字"){
                     						sou += "&resKey="+resKey;
                     					}
                    					
                    					if (sou!=""){
                    							location.href=url+sou;
                    						}
                    					}
                              
                                </script>
                            </div>

            </div>
        </div>
        <div>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </div>
    </div>

    </body>
</html>
<#include "../jsPage.html">
